// import { $t } from "@/plugins/i18n";

const Layout = () => import("@/layout/index.vue");

export default {
  path: "/activity",
  name: "Activity",
  component: Layout,
  redirect: "/activity/list",
  meta: {
    icon: "ep:calendar",
    title: "活动管理",
    rank: 2
  },
  children: [
    {
      path: "/activity/list",
      name: "ActivityList",
      component: () => import("@/views/activity/list/index.vue"),
      meta: {
        icon: "ep:list",
        title: "活动列表",
        showParent: true
      }
    },
    {
      path: "/activity/create",
      name: "ActivityCreate",
      component: () => import("@/views/activity/create/index.vue"),
      meta: {
        icon: "ep:plus",
        title: "创建活动",
        showParent: true
      }
    },
    {
      path: "/activity/detail/:id",
      name: "ActivityDetail",
      component: () => import("@/views/activity/detail/index.vue"),
      meta: {
        title: "活动详情",
        showLink: false,
        activePath: "/activity/list"
      }
    },
    {
      path: "/activity/edit/:id",
      name: "ActivityEdit",
      component: () => import("@/views/activity/edit/index.vue"),
      meta: {
        title: "编辑活动",
        showLink: false,
        activePath: "/activity/list"
      }
    }
  ]
} satisfies RouteConfigsTable;
